Method and system for scaling network traffic managers

ABSTRACT

A system for distributing network traffic to multiple traffic management devices. A distributor receives each packet from a network and may act as a layer  2  switch, a router, or distribute the packet to one of a group of traffic management devices. The distributor may receive packets from servers that the traffic management devices are managing communications to. When distributing packets to traffic management devices, information such as source and destination addresses may be used to determine which traffic management device each packet should be sent to. The distributor causes packets that are part of a flow to be delivered to the same traffic management device. Many configurations are possible for connecting the distributor to the traffic management devices, including connecting each traffic management device to a physical or virtual port on the distributor, connecting the traffic management devices to the distributor using a virtual local area network, and connecting the traffic management devices to a layer  2  switch.

CROSS-REFERENCE TO RELATED APPLICATIONS

This utility patent application is a continuation of allowed U.S. patentapplication Ser. No. 10/119,433 filed on Apr. 9, 2002, the benefit ofwhich is claimed under 35 U.S.C. §120, which claims priority to U.S.Provisional Patent Application No. 60/293,466 filed on May 24, 2001, thebenefit of the filing date of which is claimed under 35 U.S.C. §119(e),the disclosures of which are incorporated by reference in their entiretyherein.

FIELD OF THE INVENTION

The present invention relates to computer network traffic, and inparticular to distributing network traffic associated with trafficmanagement devices.

BACKGROUND

The Internet's core bandwidth continues to double every year. Some ofthis additional bandwidth is consumed as more and more users access theInternet. Other additional bandwidth is consumed as existing usersincrease their use of the Internet. This increase of Internet usetranslates into an increase in traffic directed to and from World WideWeb (WWW) servers and other Internet servers.

Replacing a WWW server with a WWW server of twice the capacity is acostly undertaking. Adding additional WWW servers is less costly butgenerally requires a load-balancing mechanism to balance workload sothat each virtual server performs work proportional to its capacity andthe number of servers available to the traffic management device that isperforming the load balancing.

Traffic across the Internet typically comes in the form of TransmissionControl Protocol/Internet Protocol (TCP/IP) packets. TCP/IP has manylayers for addressing packets. Managing TCP/IP packet traffic usinglower layers typically requires less processing than managing packetsusing higher layers. As a result, lower layer traffic management mayoften be done in hardware with its attendant speed. Unfortunately,managing packet traffic based on lower layer information is typicallynot flexible enough for many applications using the Internet. Forexample, when a user is shopping for items on a WWW server and filling a“shopping cart, ” a traffic management device that sends one of packetsfrom the user to one WWW server and another packet from the user toanother WWW server may cause shopping cart information to be lost. As aresult, a traffic management device may be required to store stateinformation about connections and look at higher TCP/IP layers tomaintain connections between servers and users.

This requirement for more sophisticated traffic management requires moreprocessing. With a sufficient rate of requests, eventually a trafficmanagement device may not be able to process traffic in a timely manner.

BRIEF DESCRIPTION OF THE DRAWINGS

FIGS. 1-3 show components of an exemplary environment in which theinvention may be practiced;

FIG. 4 illustrates an exemplary environment in which a system fordistributing traffic to an array of traffic management devices operates;

FIG. 5 shows another exemplary environment in which a system fordistributing traffic to an array of traffic management devices operates;

FIG. 6 illustrates a flow chart for processing inbound and outboundpackets;

FIG. 7 shows a flow chart for determining where to forward packetsreceived by a distributor from anywhere but a traffic management device;

FIG. 8 illustrates a flow chart for processing that may occur when apacket is received from a traffic management device;

FIG. 9 shows an exemplary table that may be used in distributingtraffic;

FIG. 10 illustrates a flow chart that shows another way of implementingthe functionality of the table shown in FIG. 9;

FIG. 11 shows an example of how packets may be sent between a client andserver in an exemplary environment in which the system operates;

FIG. 12 illustrates an exemplary environment in which a system fordistributing traffic to an array of traffic management devices operates;

FIG. 13 shows another exemplary environment in which a system fordistributing traffic to an array of traffic management devices operatesin accordance with the invention.

DETAILED DESCRIPTION OF EMBODIMENTS

In the following detailed description of exemplary embodiments of theinvention, reference is made to the accompanied drawings, which form apart hereof, and which are shown by way of illustration, specificexemplary embodiments of which the invention may be practiced. Theseembodiments are described in sufficient detail to enable those skilledin the art to practice the invention, and it is to be understood thatother embodiments may be utilized, and other changes may be made,without departing from the spirit or scope of the present invention. Thefollowing detailed description is, therefore, not to be taken in alimiting sense, and the scope of the present invention is defined onlyby the appended claims.

In the following description, first an illustrative operatingenvironment in which the invention may be practiced is disclosed. Then,examples of two systems that distribute traffic are provided. Next, amethod of processing inbound and outbound packets is given together witha table that may be used to determine an action to perform on a givenpacket, depending on attributes of the packet. Then, an example of howpackets may be distributed in an exemplary system is provided. Finally,other exemplary systems for distributing traffic are described.

As used in this document, unless the context clearly indicatesotherwise, a packet refers to an arbitrary or selectable amount of datawhich may be represented by a sequence of one or more bits. A packet maycorrespond to a data unit found in any layer of the OSI model, such as asegment, message, packet, datagram, frame, symbol stream, or stream, acombination of data units found in the OSI model, or a non OSI dataunit.

Illustrative Operating Environment

FIGS. 1-3 show components of an exemplary environment in which theinvention may be practiced. Not all the components may be required topractice the invention, and variations in the arrangement and type ofthe components may be made without departing from the spirit or scope ofthe invention.

FIG. 1 shows a plurality of local area networks (“LANs”) 120 _(a-d) andwide area network (“WAN”) 130 interconnected by routers 110. Routers 110are intermediary devices on a communications network that expeditepacket delivery. On a single network linking many computers through amesh of possible connections, a router receives transmitted packets andforwards them to their correct destinations over available routes. On aninterconnected set of LANs—including those based on differingarchitectures and protocols—, a router acts as a link between LANs,enabling packets to be sent from one to another. Communication linkswithin LANs typically include twisted pair, fiber optics, or coaxialcable, while communication links between networks may utilize analogtelephone lines, fall or fractional dedicated digital lines includingT1, T2, T3, and T4, Integrated Services Digital Networks (ISDNs),Digital Subscriber Lines (DSLs), wireless links, or other communicationslinks known to those skilled in the art. Furthermore, computers, such asremote computer 140, and other related electronic devices can beremotely connected to either LANS 120 _(a-d) or WAN 130 via a modem andtemporary telephone link. The number of WANs, LANs, and routers in FIG.1 may be increased or decreased arbitrarily without departing from thespirit or scope of this invention.

As such, it will be appreciated that the Internet itself may be formedfrom a vast number of such interconnected networks, computers, androuters. Generally, the term “Internet” refers to the worldwidecollection of networks, gateways, routers, and computers that use theTransmission Control Protocol/Internet Protocol (“TCP/IP”) suite ofprotocols to communicate with one another. At the heart of the Internetis a backbone of high-speed data communication lines between major nodesor host computers, including thousands of commercial, government,educational, and other computer systems, that route data and packets. Anembodiment of the invention may be practiced over the Internet withoutdeparting from the spirit or scope of the invention.

The media used to transmit information in communication links asdescribed above illustrates one type of computer-readable media, namelycommunication media. Generally, computer-readable media includes anymedia that can be accessed by a computing device. Computer-readablemedia may include computer storage media, communication media, or anycombination thereof.

Communication media typically embodies computer-readable instructions,data structures, program modules, or other data in a modulated datasignal such as a carrier wave or other transport mechanism and includesany information delivery media. The term “modulated data signal” means asignal that has one or more of its characteristics set or changed insuch a manner as to encode information in the signal. By way of example,communication media includes wired media such as twisted pair, coaxialcable, fiber optics, wave guides, and other wired media and wirelessmedia such as acoustic, RF, infrared, and other wireless media.

The Internet has recently seen explosive growth by virtue of its abilityto link computers located throughout the world. As the Internet hasgrown, so has the WWW. Generally, the WWW is the total set ofinterlinked hypertext documents residing on HTTP (hypertext transportprotocol) servers around the world. Documents on the WWW, called pagesor Web pages, are typically written in HTML (Hypertext Markup Language)or some other markup language, identified by URLs (Uniform ResourceLocators) that specify the particular machine and pathname by which afile can be accessed, and transmitted from server to end user usingHTTP. Codes, called tags, embedded in an HTML document associateparticular words and images in the document with URLs so that a user canaccess another file, which may literally be halfway around the world, atthe press of a key or the click of a mouse. These files may contain text(in a variety of fonts and styles), graphics images, movie files, mediaclips, and sounds as well as Java applets, ActiveX controls, or otherembedded software programs that execute when the user activates them. Auser visiting a Web page also may be able to download files from an FTPsite and send packets to other users via email by using links on the Webpage.

A server providing a WWW site, as the server described in more detail inconjunction with FIG. 2 may, is a computer connected to the Internethaving storage facilities for storing hypertext documents for a WWW siteand running administrative software for handling requests for the storedhypertext documents. A hypertext document normally includes a number ofhyperlinks, i.e., highlighted portions of text which link the documentto another hypertext document possibly stored at a WWW site elsewhere onthe Internet. Each hyperlink is associated with a URL that provides thelocation of the linked document on a server connected to the Internetand describes the document. Thus, whenever a hypertext document isretrieved from any WWW server, the document is considered to beretrieved from the WWW. As is known to those skilled in the art, a WWWserver may also include facilities for storing and transmittingapplication programs, such as application programs written in the JAVAprogramming language from Sun Microsystems, for execution on a remotecomputer. Likewise, a WWW server may also include facilities forexecuting scripts and other application programs on the WWW serveritself.

A user may retrieve hypertext documents from the WWW via a WWW browserapplication program located on a wired or wireless device. A WWWbrowser, such as Netscape's NAVIGATOR® or Microsoft's INTERNETEXPLORER®, is a software application program for providing a graphicaluser interface to the WWW. Upon request from the user via the WWWbrowser, the WWW browser accesses and retrieves the desired hypertextdocument from the appropriate WWW server using the URL for the documentand HTTP. HTTP is a higher-level protocol than TCP/IP and is designedspecifically for the requirements of the WWW. HTTP is used to carryrequests from a browser to a Web server and to transport pages from Webservers back to the requesting browser or client. The WWW browser mayalso retrieve application programs from the WWW server, such as JAVAapplets, for execution on a client computer.

FIG. 2 shows an exemplary server that may operate to provide a WWW site,and/or provide other services, among other things. When providing a WWWsite, server 200 transmits WWW pages to the WWW browser applicationprogram executing on requesting devices to carry out this process. Forinstance, server 200 may transmit pages and forms for receivinginformation about a user, such as address, telephone number, billinginformation, credit card number, etc. Moreover, server 200 may transmitWWW pages to a requesting device that allow a consumer to participate ina WWW site. The transactions may take place over the Internet, WAN/LAN100, or some other communications network known to those skilled in theart.

It will be appreciated that the server 200 may include many morecomponents than those shown in FIG. 2. However, the components shown aresufficient to disclose an illustrative environment for practicing thepresent invention. As shown in FIG. 2, server 200 is connected toWAN/LAN 100, or other communications network, via network interface unit210. Network interface unit 210 includes the necessary circuitry forconnecting server 200 to WAN/LAN 100, and is constructed for use withvarious communication protocols including the TCP/IP protocol.Typically, network interface unit 210 is a card contained within server200.

Server 200 also includes processing unit 212, video display adapter 214,and a mass memory, all connected via bus 222. The mass memory generallyincludes random access memory (“RAM”) 216, read-only memory (“ROM”) 232,and one or more permanent mass storage devices, such as hard disk drive228, a tape drive (not shown), optical drive 226, such as aCD-ROM/DVD-ROM drive, and/or a floppy disk drive (not shown). The massmemory stores operating system 220 for controlling the operation ofserver 200. It will be appreciated that this component may comprise ageneral purpose server operating system including, for example, UNIX,LINUX™, or one produced by Microsoft Corporation of Redmond, Wash. Basicinput/output system (“BIOS”) 218 is also provided for controlling thelow-level operation of server 200.

The mass memory as described above illustrates another type ofcomputer-readable media, namely computer storage media. Computer storagemedia may include volatile and nonvolatile, removable and non-removablemedia implemented in any method or technology for storage ofinformation, such as computer readable instructions, data structures,program modules or other data. Examples of computer storage mediainclude RAM, ROM, EEPROM, flash memory or other memory technology,CD-ROM, digital versatile disks (DVD) or other optical storage, magneticcassettes, magnetic tape, magnetic disk storage or other magneticstorage devices, or any other medium which can be used to store thedesired information and which can be accessed by a computing device.

The mass memory may also store program code and data for providing a WWWsite. More specifically, the mass memory may store applicationsincluding WWW server application program 230, and programs 234. WWWserver application program 230 includes computer executable instructionswhich, when executed by server 200, generate WWW browser displays,including performing the logic described above. Server 200 may include aJAVA virtual machine, an SMTP handler application for transmitting andreceiving email, an HTTP handler application for receiving and handingHTTP requests, JAVA applets for transmission to a WWW browser executingon a client computer, and an HTTPS handler application for handlingsecure connections. The HTTPS handler application may be used forcommunication with an external security application to send and receivesensitive information, such as credit card information, in a securefashion.

Server 200 may also comprise input/output interface 224 forcommunicating with external devices, such as a mouse, keyboard, scanner,or other input devices not shown in FIG. 2. Likewise, server 200 mayfurther comprise additional mass storage facilities such as opticaldrive 226 and hard disk drive 228. Hard disk drive 228 is utilized byserver 200 to store, among other things, application programs,databases, and program data used by WWW server application program 230.For example, customer databases, product databases, image databases, andrelational databases may be stored. A server and devices similar to aserver are examples of a network device.

FIG. 3 depicts several components of client computer 300. Clientcomputer 300 may include many more components than those shown in FIG.3. However, it is not necessary that those generally-conventionalcomponents be shown in order to disclose an illustrative embodiment forpracticing the present invention. As shown in FIG. 3, client computer300 includes network interface unit 302 for connecting to a LAN or WAN,or for connecting remotely to a LAN or WAN. Network interface unit 302includes the necessary circuitry for such a connection, and is alsoconstructed for use with various communication protocols including theTCP/IP protocol, the particular network configuration of the LAN or WANit is connecting to, and a particular type of coupling medium. Networkinterface unit 302 may also be capable of connecting to the Internetthrough a point-to-point protocol (“PPP”) connection or a serial lineInternet protocol (“SLIP”) connection.

Client computer 300 also includes BIOS 326, processing unit 306, videodisplay adapter 308, and memory. The memory generally includes RAM 310,ROM 304 and a permanent mass storage device, such as a disk drive. Thememory stores operating system 312 and programs 334 for controlling theoperation of client computer 300. The memory also includes WWW browser314, such as Netscape's NAVIGATOR® or Microsoft's INTERNET EXPLORER®browsers, for accessing the WWW. It will be appreciated that thesecomponents may be stored on a computer-readable medium and loaded intomemory of client computer 300 using a drive mechanism associated withthe computer-readable medium, such as a floppy disk drive (not shown),optical drive 316, such as a CD-ROM/DVD-ROM drive, and/or hard diskdrive 318. Input/output interface 320 may also be provided for receivinginput from a mouse, keyboard, or other input device. The memory, networkinterface unit 302, video display adapter 308, and input/outputinterface 320 are all connected to processing unit 306 via bus 322.Other peripherals may also be connected to processing unit 306 in asimilar manner. A client and devices like a client are other examples ofa network device. Any other device that is capable of connecting to anetwork may also be included as an example of a network device.

As will be recognized from the discussion below, aspects of theinvention may be embodied on routers 110, on server 200, on clientcomputer 300, or on some combination of the above. For example,programming steps may be contained in programs 334 and/or programs 234.Distributing may be performed by one or more servers, such as server 200or by specialized hardware on a router such as routers 110.

Illustrative Traffic Distributing Systems

FIG. 4 illustrates an exemplary environment in which a system fordistributing traffic through an array of traffic management devicesoperates, according to one embodiment of the invention. The systemincludes client 410, distributors 415-416, traffic management devices420-422, and origin servers 440-442.

Client 410 is coupled to distributor 415 over WAN/LAN 100. Distributor415 is coupled to distributor 416 through traffic management devices420-422. Distributor 415 also has a more direct connection todistributor 416. Distributor 416 is coupled to origin servers 440-442.

Client 410 is any device capable of connecting with WAN/LAN 100. The setof such devices may include devices that typically connect using a wiredcommunications medium such as personal computers, multiprocessorsystems, microprocessor-based or programmable consumer electronics,network PCs, and the like. The set of such devices may also includedevices that typically connect using a wireless communications mediumsuch as cell phones, smart phones, pagers, walkie talkies, radiofrequency (RF) devices, infrared (IR) devices, CBs, integrated devicescombining one or more of the preceding devices, and the like.Alternatively, client 410 may be any device that is capable ofconnecting using a wired or wireless communication medium such as a PDA,POCKET PC, wearable computer, or other device mentioned above that isequipped to use a wired and/or wireless communications medium. Anexemplary client that may connect with WAN/LAN 100 is client computer300 of FIG. 3.

Distributor 415 receives information in the form of packets. Each packetmay convey a piece of information. A packet may be sent for handshaking,i.e., to establish a connection or to acknowledge receipt of data. Acommunication includes a group of related packets sent between twodevices, such as client 410 and server 440. For example, to request aWeb page, client 410 may send some packets requesting a connection,e.g., handshaking packets, server 440 may respond with other handshakingpackets. Then client 410 may send a packet requesting a particular Webpage. Server 440 may respond by sending data packets associated with theWeb page. Finally, client 410 may end a communication by sending somemore handshaking packets which server 440 may respond to with otherhandshaking packets. In essence, a communication includes all packetsneeded or necessary for a transaction to occur. A communication or partof a communication may also be referred to as a flow or as a flow ofpackets.

A packet may come from various senders including client 410, trafficmanagement devices 420-422, distributor 416 or origin servers 440-442.The packet may include information such as a request, response, orconfiguration command. Generally, packets received by distributor 415will be formatted according to TCP/IP, but they could also be formattedusing another transport protocol, such as User Datagram Protocol (UDP),Internet Control Message Protocol (ICMP), NETbeui, IPX/SPX, token ring,and the like. Upon receipt of a packet, software and/or hardwareassociated with distributor 415 makes a determination as to where thepacket should go. The software and/or hardware may be logic circuitry orsoftware executing on the electronic device upon which distributor 415resides and may be integrated with distributor 415 or it may execute orreside elsewhere. The software and/or hardware may access a database, atable, or other information to determine an action to perform uponreceipt of a packet, or it may be “hard-wired” to perform a certainaction depending pre-defined conditions. Exemplary devices that may beused to implement a distributor include server 200 of FIG. 2 and client300 of FIG. 3, configured with appropriate hardware and/or software.Other exemplary devices include a switch chassis or some other customhardware/software solution including one or more processors and networkinterfaces.

For example, a user on client 410 may be requesting a Web pageassociated with a URL, such as http://www.myfavorites.com. If this is aWeb page that is serviced by origin servers 440-442, distributor 415forwards the request to one of traffic management devices 420-422. Auser on client 410 may request communication specifically with one ofthe traffic management devices. In this case, distributor 415 forwardsthe request to the specified traffic management device. For example, theuser may wish to configure the traffic management device, install newsoftware, provide maintenance, or some other activity. The user may wishto configure distributor 415. In this case, distributor 415 processesthe communication itself. Distributor 415 may receive a response to aprevious request from one of traffic management devices 420-422.Distributor 415 may then forward this request to the recipient bysending it to WAN/LAN 100. A user may send a packet directedspecifically at one of origin servers 440-442. In this case, distributor415 may send the packet to distributor 416 for relaying the packet tothe specified server.

When requests for content come to distributor 415, distributor 415 maybe required to ensure that a request from the same source is sentthrough the same traffic management device. The traffic managementdevice may maintain state information, among other things, aboutconnections between origin servers 440-442 and requestors, such asclient 410. If distributor 415 does not refer a request or informationfrom the same user to the same traffic management device, trafficmanagement devices may share connection state information which eachother so that flows of packets or relationships between flows of packetsare not disrupted. Typically, distributor 415 forwards requests asdescribed in more detail in conjunction with FIGS. 8-12.

Sometimes, when distributor 415 receives a packet, it acts like a routeror switch, forwarding the packet toward the intended recipient. Forexample, distributor 415 may receive a request to connect with server440. Distributor 415 may forward this request to distributor 416 forforwarding to server 440. Distributor 415 may receive a packet fromdistributor 416 or from traffic management devices 420-422 that isdirected to a client, such as client 410. In this case, distributor 415forwards the packet to WAN/LAN 100 (or a router thereon). Alternatively,if client 410 is a device distributor 415 is more closely connected to,distributor 415 may send the packet directly to client 410.

Distributor 415 may use a different algorithm for forwarding packetsdirected to traffic management devices 420-422 than for packets fromtraffic management devices 420-422. For example, when packets aredirected to traffic management devices 420-422, distributor 415 mayperform a hash on the sender's IP address to determine which trafficmanagement device the packet should be sent to. When distributor 415receives a packet from a traffic management device, however, it mayforego applying a hash.

A hash is a function or algorithm that maps a set of input values to aset of output values. Typically, a hash is used when the set of inputvalues has more elements than the set of output values. Some hashes whenapplied to a set of input values will map the input values approximatelyequally over the set of output values. Other hashes will map the inputvalues disproportionately to a set of output values. For example, onetraffic management device may be able to deal with twice as many packetsas another traffic management device. A hash could be constructed to mapinput packets to the one traffic management device twice as often asmapping packets to the other traffic management device. Generally, ahash is deterministic. That is, the hash will produce the same outputvalue whenever a particular input value is hashed on.

Traffic management devices 420-422 receive packets sent fromdistributors 415 and 416. In some operations, traffic management devices420-422 act like layer 7 switches. That is, they may look at contentassociated with higher TCP/IP layers of the packet, e.g. a request for apage such as http://www.favorites.com and information that identifiesthe user, such as a cookie, etc. They may store information in memory sothat next time the requestor requests more information fromhttp://www.favorites.com, each request is sent to the same server. Theymay do this, in part, to ensure that the user is connected to the serverthat the user previously connected to. This helps prevent the loss oftransaction data, such as items in a shopping cart.

In addition, traffic management devices 420-422 may perform networkaddress translation (NAT). That is, in a TCP/IP packet, they may changethe source and/or destination field. This may be done for many reasons.One reason is so that intranets can keep their own private address spaceand not have to use publicly routable addresses, which may be difficultto obtain. Another reason is that each traffic management device isconfigured to cause future communications to and from a server to flowthrough the traffic management device, so that the traffic managementdevice may maintain state information about the connection. The trafficmanagement device may need state information to gracefully close aconnection if, for example, the server fails. In addition, the trafficmanagement device may need state information to reroute a connection toanother server if the server fails. Another reason the trafficmanagement device may be configured to have all future packets in a flowof packets pass through it is for security and/or anonymity purposes.

For example, if a server, such as server 440, requested stockinformation from a stock server (not shown) connected to WAN/LAN 100,the server would give its IP address as the source address so that thestock server would know where to respond to. The traffic managementdevice through which the request travels, for example, trafficmanagement device 420, could replace the source IP address of therequest with an IP address associated with traffic management device 420so that the stock server would respond to distributor 415 instead ofserver 440. Provided that distributor 415 routes the response from thestock server through traffic management device 420, this allows trafficmanagement device 420 to maintain state information, provide security,and gracefully shut down or transfer a connection between the stockserver and server 440.

Traffic management devices, such as traffic management devices 420-422,are any devices that manage network traffic. Such devices include, forexample, routers, proxies, firewalls, load balancers, devices thatperform network address translation, any combination of the precedingdevices, and the like. A traffic manager may, for example, control theflow of data packets delivered to and forwarded from an array ofapplication servers, such as Web servers. A traffic manager may direct arequest for a resource to a particular Web server based on networktraffic, network topology, capacity of the server, content requested,and a host of other load balancing metrics. A traffic manager mayreceive data packets from and transmit data packets to the Internet, anintranet, or a local area network accessible through another network. Atraffic manager may recognize packets that are part of the samecommunication, flow, and/or stream and may perform special processing onsuch packets, such as directing them to the same server so that stateinformation is maintained. A traffic manager may support a wide varietyof network applications such as Web browsing, email, telephony,streaming multimedia, and other traffic that is sent in packets.

A traffic management device may be implemented using one or morepersonal computers, POCKET PCs, wearable computers, processors,multiprocessor systems, microprocessor-based or programmable consumerelectronics, network PCs, cell phones, smart phones, pagers, walkietalkies, radio frequency (RF) devices, infrared (IR) devices, CBs,integrated devices combining one or more of the preceding devices, andthe like. Such devices may be implemented solely in hardware or inhardware and software. For example, such devices may include someapplication specific integrated circuits (ASICs) coupled to one or moremicroprocessors. The ASICs may be used to provide a high speed switchfabric while the microprocessors may perform higher layer processing ofpackets. An exemplary device that could be used as a traffic managementdevice is server computer 200 of FIG. 2, configured with appropriatesoftware. A traffic management device may have multiple networkinterface units and each network interface unit may interface with oneor more networks. Traffic manager as it is used in this document meanstraffic management device.

Distributor 416 receives communications and forwards them to one or moreof server 440-442, to distributor 415, or to traffic management devices420-422. When delivering packets to traffic management devices 420-422,distributor 416 may be configured to hash on a destination IP address sothat the traffic management device that sent a packet to a particularserver receives the server's response. Distributor 416 may act as aswitch or router in relaying packets to intended recipients. Althoughdistributor 416 is shown as having one shared communications link(segment) going between it and origin servers 440-442, it may havededicated communications links to each of origin servers 440-442.

Origin servers 440-442 may include one or more WWW servers, such asserver 200 of FIG. 2, or other general-purpose servers. Origin servers440-442 may serve content for more than one vendor. For example, a groupof vendors may each run their Web sites using one or more origin servers440-442. Origin servers 440-442 may perform other services besidesserving Web pages.

FIG. 5 shows another exemplary environment in which a system fordistributing traffic through an array of traffic management devicesoperates, according to one embodiment of the invention. The systemincludes client 410, distributor 505, server 510, traffic managementdevices 420-422, and origin servers 440-442.

Client 410 and server 510 are each coupled to distributor 505 overWAN/LAN 100. Distributor 505 is coupled to traffic management devices420-422 and origin servers 440-442.

Components numbered similarly to those in FIG. 4 operate similarly. Adifference between the environment shown in FIG. 5 and that shown inFIG. 4 is that the functionality of distributors 415-416 has beencombined in distributor 505. In addition, distributor 505 is shown ashaving dedicated communication links (segments) to each of originservers 440-442. It will be understood that distributor 505 may also beconfigured to have more than one traffic management device connected toeach communication link.

Similarly, although FIG. 5 shows each of origin servers 440-442 sharinga communications link, each server may be placed on its own dedicatedcommunication link or paired with one or more other servers withoutdeparting from the spirit or scope of the invention.

In general, distributor 505 operates logically like the combination ofdistributors 415 and 416. Inter-distributor packets, e.g. ones sentdirectly from distributor 415 to distributor 416, are no longernecessary with distributor 505. A packet that is sent from client 410addressed directly to a server, such as server 440, may be routeddirectly to the server instead of passing through two distributors.Likewise, a packet sent from a server directly to the user may be routeddirectly to WAN/LAN 100 instead of passing through two distributors.

Server 510 is any device capable of connecting with WAN/LAN 100 andresponding to requests from other devices, such as Web page requests.The set of such devices capable of acting as a server may includedevices that typically connect using a wired communications medium suchas personal computers, multiprocessor systems, microprocessor-based orprogrammable consumer electronics, network PCs, and the like. The set ofsuch devices may also include devices that typically connect using awireless communications medium such as cell phones, smart phones,pagers, walkie talkies, radio frequency (RF) devices, infrared (IR)devices, CBs, integrated devices combining one or more of the precedingdevices, and the like. Alternatively, server 510 may be any device thatis capable of connecting using a wired or wireless communication mediumsuch as a PDA, POCKET PC, wearable computer, or other device mentionedabove that is equipped to use a wired and/or wireless communicationsmedium. An exemplary server hat may connect with WAN/LAN 100 is server200 of FIG. 2.

The configuration of FIG. 5 may be used for various reasons including tolower costs (by providing one instead of two distributors) or because asystem does not need the capacity of two distributors.

Illustrative Method of Distributing Traffic

FIG. 6 illustrates a flow chart for processing inbound and outboundpackets, according to one embodiment of the invention. The processbegins at block 605 when a distributor, such as distributor 505 of FIG.5, is ready to receive a packet.

At block 610, the packet is received. For example, referring to FIG. 5,a packet sent from client 410 requesting a web page fromhttp://www.myfavorites.com is received by distributor 505.

At block 615, a determination is made as to whether the packet is from atraffic management device. Packets from traffic management devicesreceive different treatment than packets to traffic management devices.Generally, such packets are directed to a client computer, such asclient 410 of FIG. 5, or are directed to a server, such as server 440.Typically, distributor 505 does not need to apply a hash to such packetsto determine where they go, although in some cases, as will be describedin conjunction with FIG. 8, distributor 505 may be required to changethe source media access control (MAC) layer address. When a packet isfrom a traffic management device, processing branches to block 620;otherwise, processing branches to block 625. For example, upon receivinga request from client 410 for a web page fromhttp://www.myfavorites.com, processing branches to block 625.

At block 620, outbound processing is performed as described in moredetail in conjunction with FIG. 8. Briefly, the source MAC address onthe packet may be changed to cause a response to the packet to bedirected appropriately.

At block 625, inbound processing is performed as described in moredetail in conjunction with FIG. 7. Briefly, to keep packets travelingthrough the same traffic management device, information about where thepacket came from and where it is going is used to forward the packet.

At block 630, processing ends. At this point, a packet has been receivedby the distributor and processing has occurred, depending on whether thepacket came from or was directed to a traffic management device. Anotherpacket may be distributed by repeating the process above.

FIG. 7 shows a flow chart for determining where to forward packetsreceived by a distributor from anywhere but a traffic management device,according to one embodiment of the invention. The process begins atblock 705 after it is determined that the packet is directed to thenetwork upon which the traffic management devices are located.

At block 710, a determination is made as to whether the packet isdirected to the layer 2 address of the distributor. When it is,processing branches to block 720; otherwise, processing branches toblock 715. The layer 2 address generally refers to the media accesscontrol (MAC) layer. A packet may be directed to the layer 2 address ofthe distributor by including the distributor's MAC address as thedestination address in a packet. Alternatively, a packet may be directedto the distributor by virtue of its transmission to a specified physicalor logical port on the distributor. Whenever a packet arrives on aparticular physical port, this may indicate that the packet is intendedfor the distributor. A packet may also be directed to the distributorusing the virtual local area network (VLAN) standard. The essence of thequestion asked in block 710 is whether the packet is addressed to layer2 address of the distributor.

A distributor may act as a layer 2 switch. That is, it may examinepackets sent on segments attached to it. If it finds a packet that isdirected to a device on another segment the distributor is attached to,the distributor may forward this packet to the other segment. This isknown as layer 2 switching or bridging. These packets will generally notbe addressed specifically to the distributor; rather, the distributormay “listen” for and forward packets for which it has information aboutwhere the recipient is connected. When it finds such a packet, itforwards the packet using bridging (layer 2 switching) mechanisms.

Alternatively, the distributor may be structured without layer 2switching capability. That is, it may ignore any packet that is notaddressed to the distributor's layer 2 address. In this case, blocks 710and 715 may be eliminated.

When a packet is directed to the layer 2 address of the distributor,typically, this means that the packet is either meant to be sent toanother node or is directed to the traffic management devices thedistributor distributes traffic to. These conditions will be discussedmore below.

At block 715, the packet may be forwarded using bridging. That is, thepacket is not distributed using a hashing algorithm; rather, theaddress, possibly a MAC address, is used to determine to which segmentthe packet should be sent. This may be done using layer 2 switchingtechniques. Alternatively, the packet may be discarded, with or withouta reply to the sender, if it is determined that there is not a deviceassociated with the address. For example, referring to FIG. 5,distributor 505 “sees” a packet destined for an administrative device(not shown) on a segment connected to distributor 505. Theadministrative device may be, for example, a network utilization monitor(not shown) that tracks how much traffic occurs on a segment. A networkadministrator using client 410 may desire to download the most recentstatistics from the monitor. To do so, the network administrator sends arequest directed to the device. Distributor 505 sees the request on oneof its segments, does a lookup in a layer 2 switching table, anddetermines that the packet should be forwarded to another segment uponwhich the network utilization monitor is connected. The distributor thenforwards the packet to the other segment using layer 2 switching(bridging).

At block 720, a determination is made as to whether the packet isdirected to a specific traffic management device. If it is, processingbranches to block 725; otherwise, processing branches to block 730. Forexample, a network administrator may desire to configure a trafficmanagement device to use a different load balancing algorithm. To do so,the network administrator may establish a network connection using an IPaddress associated with a specific traffic management device.

At block 725, the packet is forwarded to the specified trafficmanagement device. For example, referring to FIG. 5 distributor 505receives a packet specifically directed to traffic management device 420and delivers the packet to traffic management device 420 At block 730, adetermination is made as to what action to perform based on informationin the packet as described in more detail in conjunction with FIGS. 9and 10. Then, the determined action is performed. One example of anaction that may be performed is distribution of the packet to a trafficmanagement device. Briefly, the source and/or destination addresses maybe examined to determine to which traffic management device todistribute the packet. To distribute the packet, sometimes a hash may beperformed on the source and/or destination address(es). For example,referring to FIG. 11, distributor 505 may determine that the packetshould be distributed to a traffic management device. When distributor505 receives a packet from client 410, with an IP address and portnumber of, for example, 12.228.54.3:9444, distributor 505 may hash onthe client's IP address and forward the packet to traffic managementdevice 420.

Another example of an action that may be performed is routing. Forexample, referring to FIG. 5, distributor 505 may also act as a router.When it receives a packet that is not bound for a traffic managementdevice, e.g., packets bound for a device connected to another network(not shown) or packets bound for a device for which traffic managementdevices do not need to keep connection state, it may forward the packetto the other network or device as a router would, e.g., by looking upinformation in a routing table and forwarding the packet appropriately.

As a further example of routing, client 410 may send a packet addressedspecifically to one of origin servers 440-442, e.g. server 440.Distributor 505 may be a router servicing server 440. Being sent fromanother router, the packet would be directed to distributor 505's layer2 address, but the layer 3 address would indicate that the packet wasdestined for a device connected to distributor 505, rather thandistributor 505 itself. For example, the destination MAC (layer )address of the packet may be the MAC address of distributor 505; but,the IP (layer 3) address of the packet may be 192.168.3.5, the IPaddress of server 440. When distributor 505 receives a packet that has adestination MAC address of distributor 505 but a layer 3 address ofanother device, distributor 505 may look up the layer 3 address anddetermines where to forward the packet to, in this case, server 440.

In another embodiment of the invention, distributor 505 does not includerouting capability. In this case, it may simply discard the packet,return it to the sender, or forward it to a default location.

At block 735, the process returns to the calling process. At this point,the packet may have been forwarded using layer 2 switching, forwarded toa specific traffic management device, forwarded using layer 3 routing,discarded, or distributed to a traffic management device.

FIG. 8 illustrates a flow chart for processing that may occur when apacket is received from a traffic management device, according to oneembodiment of the invention. The process begins at block 805 after apacket has been received from a traffic management device.

At block 810, a determination is made as to whether the MAC (layer )source address of the packet is “correct.” When it is, processingbranches to block 820; otherwise, processing branches to block 815.“Correct” means that a device responding to the packet would send apacket to the MAC address associated with all of the traffic managementdevices rather than the MAC address associated with the sending trafficmanagement device (unless the two addresses are the same). For example,referring to FIG. 11, switch 1205 may be an unsophisticated layer 2switch that is unable to translate the source MAC address in packetsfrom each of traffic management devices 420-422 into a single MACaddress. The result may be that a device communicating with distributor505 uses the MAC address of a traffic management device rather than theMAC address of the group of traffic management devices. This may causedistributor 505 to forgo distributing traffic to the traffic managementdevices and to send the packet directly to the traffic management deviceassociated with the MAC address. It may also cause other problems withother devices connected to WAN/LAN 100 or elsewhere. This problem may becorrected by replacing the source MAC address with a common or grouptraffic management device MAC address in packets sent from trafficmanagement devices through an unsophisticated switch. Then, a deviceresponding to the packet would try to respond to the group trafficmanagement device MAC instead of the actual MAC of the device. Thisallows distributor 505 to utilize its normal distribution methods insending the packet.

At block 815, the MAC source address in the packet is replaced by a MACaddress associated with the group of traffic management devices. Thismay be the MAC address of the distributor. For example, referring toFIG. 11, traffic management device 422 sends a packet with its real MACaddress to switch 1205 which forwards it to distributor 505. Distributor505 replaces the source MAC address with distributor 505's MAC address.

At block 820, the packet is forwarded towards its indicated destination.This may be done through routing, layer 2 switching, or other forwardingalgorithms. For example, referring to FIG. 11, distributor 505 forwardsthe packet to server 440 using layer 2 switching.

At block 825, the process returns to the calling process. At this point,the source MAC address of the packet has been changed, if necessary, andthe packet forwarded towards its destination.

Exemplary Data Structure

FIG. 9 shows an exemplary table that may be used in distributingtraffic, according to one embodiment of the invention. The table is foruse with traffic management devices that may perform network addresstranslation (NAT). The table assists a distributor to ensure each packetthat is part of a communication between a client and a server, such asclient 410 and server 1 of FIG. 5, flow through the same trafficmanagement device, such as traffic management device 420. Each cell inthe table gives an action to perform based on attributes found in thesource and destination addresses. A source or destination address may bean IP address, a port address, such as UDP or TCP, VLAN ID, physicalport identifier, physical port, or some combination thereof.Alternatively, a source or destination address may be some other layer1-7 address. The table applies to any packet that is not sent from atraffic management device. Terms in the table are defined below.

NAT-able

NAT-able essentially means if a traffic management device received apacket from a device with this source address, would the trafficmanagement device translate the source address to another address. Asexplained previously in conjunction with FIG. 4, a traffic managementdevice may translate a source address so that the receiver of the packetresponds to the traffic management device, not the sender of the packet.This allows the traffic management device to maintain connection stateas described earlier.

Node address

Node address means is the packet from one of the servers that thetraffic management devices load balance connections to. Referring toFIG. 5, the servers traffic management devices 420-422 load balancepackets to include origin servers 440-442.

&&

The symbol “&&” means and. So, in the condition NAT-able && NodeAddress, the source address must be both NAT-able and a node address tosatisfy the condition.

Unknown address

Unknown address means that to the traffic management device, the addressis unknown or, even if known, no special or different processing occursbased solely on the address. For example, generally when a client, sucha client 410, sends a packet that is distributed to a traffic managementdevice, such as traffic management device 420, client 410's address isunknown to the traffic management device. In addition, the address of apacket sent from a server, such as server 440, may also be unknown tothe traffic management device. Each server may be associated with morethan one address. A traffic management device may recognize one or moreaddresses as belonging to servers that the traffic management devicesends packets to for load balancing. One or more addresses may beaddresses to which a traffic management device does not send packets tofor load balancing. Thus, a server, such as server 440, could send apacket using an address “unknown” to a traffic management device. Thiscould happen, for example, if the server was also used as a personalcomputer or otherwise which was associated with an “unknown” address forsuch uses.

NAT xlate

NAT xlate is short for NAT translation. Essentially, it means is thisaddress an address that a traffic management device would translate asource address to when it performs a NAT? Generally, such an address isan address associated with the traffic management device (so that thereceiver will respond to the traffic management device).

Virtual or Virtual address

Virtual, in this table, stands for virtual address. This is the addressthat a URL resolves to. For example, http://www.myfavorites.com mayresolve to 12.32.22.33:80. A packet with the address is eventuallyforwarded to distributor 505 which determines if any of the trafficmanagement devices service this Web page. When one or more trafficmanagement devices load balance traffic for this Web page, the addressis known as a virtual address.

With these definitions in mind, a distributor, such as distributor 505,looks at the source and/or destination addresses in a packet todetermine an action to take. The above information, e.g. what areNAT-able addresses, node addresses, translation addresses, virtualaddresses, etc., may be stored in a lookup table on the distributor.This lookup table may be updated automatically or manually through auser's intervention. Typically, the table would be updated to reflectinformation on the traffic management devices to which the distributordistributes traffic.

Now, the actions shown in the cells of the table will be defined. “Gotodest” is short for send the packet to the destination indicated in thedestination address. An example of where this would occur is as follows:A server, such as server 440, requests stock prices from a server on theInternet, such as server 510. This request would pass through thedistributor which would determine 1) that the source address is known(it is a node address); 2) the traffic management device would NAT theaddress (to make sure that all packets in the communication pass throughit); and 3) that the destination address was unknown. Using thisinformation, it would hash on the destination address and send thepacket to a traffic management device, such as traffic management device420. The traffic management device would NAT the source address byreplacing it with either the address of a virtual address or anaddresses associated with the traffic management device. Then, it wouldsend the packet to the distributor which would then forward the packetto the WAN/LAN 100, the Internet in this case. The packet wouldeventually be delivered to the server which would respond to the sourceaddress of the packet (the one the traffic management device NAT-ed).When the response packet arrived at the distributor, the distributorwould determine 1) that the source address is unknown (to thedistributor), and 2) that the destination address is either a NAT xlateand possibly a virtual address. In either case, the distributor wouldforward the packet to the specified destination address (the trafficmanagement device that performed the NAT). The traffic management devicewould then perform another NAT (to make sure that server 440 respondedto the traffic management device instead of directly to server 510), andforward the packet to the distributor which would then forward thepacket to server 440.

As can be seen by the example, “goto Dest” essentially means that thepacket should simply be forwarded to the destination address withoutperforming a hash on an address. “Hash Src”

Hash Src is short for hash on the source address. This distributes apacket to a traffic management device based on the source address. Aswill be seen by examples below, this, combined with hashing ondestination, causes related packets to travel through the same trafficmanagement device. “Hash Dest.”

Hash Dest is short for hash on the destination address. This distributesa packet to a traffic management device based on the destinationaddress.

Route

This means that the distributor employs regular routing mechanism toforward the packet towards its destination.

It will be recognized that this table is intended to mimic some of thedecision making that occurs on traffic management devices. Yet, thedistributor is not required to do layers 3-7 switching, a potentiallycomputationally expensive operation; rather a lookup (relatively fast)is done and traffic distributed. Traffic management devices may beconfigured to direct packets differently than shown in this table. Forsuch traffic management devices, an appropriate selection of actionsthat may be looked up without storing connection state information iscontemplated and is within the scope and spirit of this invention.

FIG. 10 illustrates a flow chart that shows another way of implementingthe functionality of the table shown in FIG. 9, according to oneembodiment of the invention. The process begins at block 1005 when acalling process calls the process. Terms in the flow chart should beinterpreted as defined in FIG. 9.

At block 1010, a determination is made as to whether the source anddestination addresses are unknown. When they are, processing branches toblock 1015; otherwise, processing branches to block 1020. The source anddestination addresses may both be unknown when a server, such as server440 of FIG. 5, uses an “unknown” IP address associated with it torequest information from a server, such as server 510.

At block 1015, the packet is routed towards the intended recipient usingnormal routing mechanisms. For example, distributor 505 forwards apacket from server 510 to server 440.

At block 1020, a determination is made as to whether the source addressis unknown. If so, processing branches to block 1025; otherwise,processing branches to block 1030. Client 410 may request a page fromhttp://www.myfavorites.com which is translated into an address thatdistributor 505 recognizes should be processed by traffic managementdevices 420-422.

At block 1025, the source address is hashed on and the packet sent tothe traffic management device associated with the hash. This means thata hashing function is applied to the source address to distribute thepacket to the traffic management device. For example, a request for apage from client 410 may cause distributor 505 to hash upon client 410'saddress and send the request to traffic management device 420.

At block 1030, a determination is made as to whether the destinationaddress is unknown. If it is, processing branches to block 1035;otherwise, processing branches to block 1040. For example, in a responseto a request from client 410, server 440 will send a packet addressed toclient 410. Client 410's address, however, is generally “unknown” todistributor 505. Note, however, that by hashing on the destinationaddress, distributor 505 sends the response to the same trafficmanagement device that it sent client 410's request.

At block 1035, the destination address is hashed on and the packet sentto the traffic management device associated with the hash. This meansthat a hashing function is applied to the destination address todistribute the packet to a traffic management device. For example,distributor 505 hashes upon client 410's address (the destinationaddress of the packet from server 440), and sends the response totraffic management device 420.

At block 1040, a determination is made as to whether the destinationaddress is a virtual address and not a NAT address. When this is so,processing branches to block 1045; otherwise, processing branches toblock 1050. For example, in a request from server 440 for stock pricesfrom server 510, traffic management device 420 may perform a NAT on thesource address, providing a virtual address associated withhttp://www.myfavorites.com. When server 510 responds to the virtualaddress, the source address should be hashed upon.

At block 1045, the source address is hashed on and the packet sent tothe traffic management device associated with the hash. This means thata hashing function is applied to the source address to distribute thepacket to a traffic management device.

At block 1050, the packet is sent to the destination address. Forexample, distributor 505 receives a packet that has a destinationtranslated NAT address from a known source address. This might occur ina communication between server 440 and server 441 wherein server 440requests information from http://www.myfavorites.com and the requestgets load balanced to server 441.

At block 1055, the process returns to the calling process. At thispoint, the packet has been sent in such a way as to cause the flow ofinformation to pass through the same traffic management device andserver, when possible

In light of this disclosure, it will be recognized that many variationsof the processes shown in FIGS. 7, 8, and 10 may be implemented withoutdeparting from the spirit or scope of this invention.

FIG. 11 shows an example of how packets may be sent between a client andserver in an exemplary environment in which the system operates,according to one embodiment of the invention. The system includes client410, distributor 505, traffic management devices 420-422, origin servers440-442 and switch 1205.

Client 410 is coupled to distributor 505 over WAN/LAN 100. Distributor505 is coupled to traffic management devices 420-422 and origin servers440-442.

The functioning of this system is described in more detail inconjunction with FIG. 5. The discussion here will focus on a specificexample of how a request from a client may flow through the system.

Assume that client 410 has an IP address of 12.228.54.3. and initiates arequest for http://www.myfavorites.com using ephemeral port 9444. Assumealso that the URL, http://www.myfavorites.com, is associated with the IPaddress 168.33.20.180 (what is known in this disclosure as a virtualaddress). When client 410 sends this packet, it travels through WAN/LAN100 until it reaches distributor 505. Distributor 505 determines thepacket as coming from an unknown source address, i.e., 12.228.54.3:9444,and that the packet is directed to a destination virtual address, i.e.,168.33.20.180. Based on the flow chart shown in FIG. 10, block 1045 isreached and the distributor sends the packet to one of the trafficmanagement devices, suppose traffic management device 420, by hashing onthe source address 12.228.54.3. Traffic management device 420 receivesthe packet, performs load balancing and determines that server 440 isbest able to handle the packet. Traffic management device 420 changesthe destination address of the packet to that of server 440, assume168.33.30.180, and sends the packet to distributor 505. As this is apacket coming from a traffic management device directly to distributor505 (not through an unsophisticated switch), distributor 505 does notneed to stamp a different MAC address on the source address of thepacket and sends the packet to server 440.

Server 440, receives the packet, prepares a response, and sends aresponse to distributor 505 with a source address of 168.33.30.180,i.e., the IP address of the server, and a destination address of12.228.54.3:9444, the IP address of the client. Distributor 505 followsthe logic shown in the flow chart in FIG. 7 and arrives at block 730. Atblock 730, the logic shown in FIG. 10 is followed. It is determined thatthe source address, i.e., server 440's address, is known, but thedestination address, client 410's address, is unknown. This causes thelogic in block 1035 to be executed, which causes a hash to occur on thedestination address, i.e., the client's address. Note, that this is thesame address (although now in the destination) that was hashed when therequest came to distributor 505. This causes the response packet to bedistributed to traffic management device 420.

Traffic management device 420 tracks the state information and probablyperforms a NAT on the source address. The source address could bechanged to the virtual address of http://www.myfavorites.com, so thatwhen the client responds, it does not try to respond directly to server440; rather, a response packet is addressed to distributor 505 again. Itwill be understood that this sequence of events will cause the packetsin a communication between any arbitrary client and server to be routedthrough the same traffic management device, provided the trafficmanagement device remains active and other configuration changes are notperformed during the communication.

Other Illustrative Traffic Distributing Systems FIG. 12 illustrates anexemplary environment in which a system for distributing traffic throughan array of traffic management devices operates, according to oneembodiment of the invention. The system includes client 410, distributor505, traffic management devices 420-422, origin servers 440-442 andswitch 1205.

Client 410 is coupled to distributor 505 over WAN/LAN 100. Distributor505 is coupled to origin servers 440-442 through switch 1205.Distributor 415 is also coupled to traffic management devices 420-422.

A difference between the environment shown in FIG. 5 and the environmentshown in FIG. 12 is that switch 1205 is inserted between distributor 505and traffic management devices 420-422. Switch 1205 may be anunsophisticated “off-the-shelf” layer 2 switch as described above inconjunction with FIG. 8, or switch 1205 may be more sophisticated andable to do some translation of addresses or use a special type ofaddressing, such as VLAN addressing. With an unsophisticated switch,distributor 505 may change the MAC address on packets received from theswitch, as described in more detail in conjunction with FIG. 8. With aswitch capable of VLAN switching, the distributor may prepend addressinformation in packets according with the VLAN standard to cause packetsto be delivered to intended traffic management devices. It will berecognized that in FIG. 5, delivery of packets to traffic managementdevices 420-422 is done by virtue of the connection of each trafficmanagement device to a separate port on distributor 505 and does notrequire an external switch.

FIG. 13 shows another exemplary environment in which a system fordistributing traffic through an array of traffic management devicesoperates, according to one embodiment of the invention. The systemincludes client 410, distributor 505, traffic management devices420-422, and origin servers 440-442. In this system, traffic managementdevices 420-422 are located on one physical segment of the network. Whendistributor 505 sends a packet to a traffic management device, it usesthe MAC address of the distributor. In other respects, however, thesystem shown in FIG. 13 operates similarly to that shown in FIG. 5.

In other embodiments of the invention, one or more distributors may beintegrated with one or more traffic management devices and switchfabric. In such embodiments, rather than changing MAC addresses, theswitch fabric may encapsulate a data frame with a header that indicatesthe traffic management device to which the data frame should be sent.This may include a “virtual port” associated with a traffic managementdevice. In addition, the traffic management device may be instructed toprocess data frames encapsulated with headers that identify the trafficmanagement device. For example, the traffic management device mayprocess data frames addressed to one or more virtual ports. In suchembodiments, there may be no need to change the MAC address of a dataframe to direct the data frame to the appropriate traffic managementdevice.

In yet other embodiments of the invention, a packet is encapsulated inanother packet that is addressed to a traffic management device. Thepacket may then be forwarded over a WAN/LAN to the traffic managementdevice which then may unencapsulate the encapsulated packet to retrievethe packet encapsulated. The traffic management device may then processthe retrieved packet appropriately.

It will be noted that in FIGS. 4, 5, 11, 12, and 13, origin servers440-442 appear to be located on a shared network segment. In otherembodiments of the invention, each one is on a dedicated networksegment. In yet other embodiments of the invention, groups of servers inorigin servers 440-442 are each located on separate shared networksegments. In other embodiments, a VLAN is used to connect with originservers 440-442. It will be understood that many differentconfigurations for coupling the servers to distributor 505 may beperformed without departing from the spirit or scope of this invention.

The various embodiments of the invention may be implemented as asequence of computer implemented steps or program modules running on acomputing system and/or as interconnected machine logic circuits orcircuit modules within the computing system. The implementation is amatter of choice dependent on the performance requirements of thecomputing system implementing the invention. In light of thisdisclosure, it will be recognized by one skilled in the art that thefunctions and operation of the various embodiments disclosed may beimplemented in software, in firmware, in special purpose digital logic,or any combination thereof without deviating from the spirit or scope ofthe present invention.

The above specification, examples and data provide a completedescription of the manufacture and use of the composition of theinvention. Since many embodiments of the invention can be made withoutdeparting from the spirit and scope of the invention, the inventionresides in the claims hereinafter appended.

1. An apparatus for distributing flows of packets in a network having aplurality of network devices and a plurality of traffic managers,comprising: a receiving interface for receiving a flow of packets to oneof the plurality of network devices; and a forwarding component thatforwards each received packet to a determined traffic manager, whereinthe forwarding component determines the traffic manager based on whetherat least one address that is included with a received packet is alsoassociated with a set of addresses, and wherein if the packet includes asource address that is associated with the set of addresses, using adestination address of the packet to determined traffic manager.
 2. Theapparatus of claim 1, wherein the determined traffic manager ispersistent for each packet in at least one flow of packets.
 3. Theapparatus of claim 1, wherein the forwarding component forwards thepacket to the determined traffic manager using the source address of thepacket if it includes the destination address that is associated withanother set of addresses.
 4. The apparatus of claim 3, wherein using thesource address of the packet includes hashing it to obtain a value thatis then used to distribute the packet to a particular traffic manager.5. The apparatus of claim 1, wherein the forwarding component enablesthe packet to be routed to a destination if at least one of the sourceaddress is not associated with the set of addresses or a destinationaddress is not associated with the set of addresses.
 6. The apparatus ofclaim 1, wherein each address includes at least one of a media accesscontrol (MAC) address, a virtual local area network (VLAN) identifier, atransmission control protocol (TCP) port, a user datagram protocol (UDP)port, an internet protocol (IP) address, physical port identifier, or aphysical port.
 7. The apparatus of claim 1, wherein if the packet isreceived from one of the plurality of traffic managers, a first addressincluded in the packet is replaced with a second address.
 8. Theapparatus of claim 1, wherein the apparatus is further arranged tooperate as at least one of a switch chassis, router, proxy, firewall,load balancer, or Network Address Translator (NAT).
 9. An apparatus fordistributing flows of packets in a network having a plurality of networkdevices and a plurality of traffic managers, comprising: a receivinginterface for receiving a flow of packets to one of the plurality ofnetwork devices; and a forwarding component that forwards each receivedpacket to a determined traffic manager, wherein the forwarding componentdetermines the traffic manager based on whether at least one addressthat is included with a received packet is also associated with a set ofaddresses, and wherein if the packet includes a destination address thatis associated with the set of addresses, forwarding the packet to thetraffic manager using a source address of the packet.
 10. The apparatusof claim 9, wherein the forwarding component forwards the packet to thedetermined traffic manager using the destination address of the packetif it includes the source address that is associated with the set ofaddresses.
 11. The apparatus of claim 9, wherein the determined trafficmanager is persistent for each packet in at least one flow of packets.12. The apparatus of claim 9, wherein if the packet is received from oneof the plurality of traffic managers, a first address included in thepacket is replaced with a second address.
 13. A system for distributingflows of packets over a network, comprising: a plurality of servers thatare arranged to provide access to a resource over the network; aplurality of traffic managers that are configured to direct at least oneflow of packets to at least one of the plurality of servers; and atleast one distributor that is arranged to receive the flow of packetsand forward the flow to a determined traffic manager, wherein if thepacket includes a source address that is associated with a set ofaddresses, the distributor is configured to use a destination address ofthe packet to determine the one of the plurality of traffic managers toforward the packet to.
 14. The system of claim 13, wherein thedistributor is further arranged to use a source address of the packet todetermine the one of the plurality of traffic managers to forward thepacket to if the packet includes a destination address that isassociated with another set of addresses.
 15. The system of claim 13,wherein the determined one of the plurality of traffic managers ispersistent for each packet in at least one flow of packets between twonetwork devices.
 16. The system of claim 13, wherein if the packet isreceived from one of the plurality of traffic managers, a first addressincluded in the packet is replaced with a second address.
 17. The systemof claim 13, further comprising a virtual local area network (VLAN)coupled to at least a portion of the plurality of traffic managers,wherein the packet is forwarded by placing an identifier in front of amedia access control header and sending the packet to the VLAN switch.18. A system for distributing flows of packets over a network,comprising: a plurality of servers that are arranged to provide accessto a resource over the network; a plurality of traffic managers that areconfigured to direct at least one flow of packets to at least one of theplurality of servers; and at least one distributor that is arranged toreceive the flow of packets and forward the flow to a determined trafficmanager, wherein if the packet includes a destination address that isassociated with a set of addresses, the distributor is configured to usea source address of the packet to determine the one of the plurality oftraffic managers to forward the packet to.
 19. The system of claim 18,wherein the determined one of the plurality of traffic managers ispersistent for each packet in at least one flow of packets between twonetwork devices.
 20. The system of claim 18, wherein if the packet isreceived from one of the plurality of traffic managers, a first addressincluded in the packet is replaced with a second address.
 21. The systemof claim 18, further comprising a virtual local area network (VLAN)coupled to at least a portion of the plurality of traffic managers,wherein the packet is forwarded by placing an identifier in front of amedia access control header and sending the packet to the VLAN switch.22. A method for distributing flows of packets over a network having aplurality of network devices and a plurality of traffic managers,comprising: receiving a flow of packets to at least one of the pluralityof network devices; for each packet in the flow with a source addressassociated with a set of addresses, forwarding that packet to one of theplurality of traffic managers that is selected based at least in part ona destination address of the packet, and for each packet in the flowwith the destination address associated with the set of addresses,forwarding that packet to one of the plurality of traffic managers thatis selected based at least in part on a source address of the packet.23. The method of claim 22, wherein the selected one of the plurality oftraffic managers is persistent for each packet in at least one flow ofpackets between two network devices.
 24. The method of claim 22, whereinif the packet is received from one of the plurality of traffic managers,a first address included in the packet is replaced with a secondaddress.
 25. A processor readable media that includes components forenabling the distribution of a flow of packets over a network having aplurality of network devices and a plurality of traffic managers,comprising: a first component arranged for enabling the receipt of aflow of packets to at least one of the plurality of network devices; asecond component arranged for enabling each packet in the flow with asource address associated with a set of addresses to be forwarded to oneof the plurality of traffic managers that is selected based at least inpart on a destination address of the packet, and a third componentarranged for enabling each packet in the flow with the destinationaddress associated with the set of addresses to be forwarded to one ofthe plurality of traffic managers that is selected based at least inpart on a source address of the packet.
 26. The processor readable mediaof claim 25, wherein the selected one of the plurality of trafficmanagers is persistent for each packet in at least one flow of packetsbetween two network devices.
 27. The processor readable media of claim25, wherein if the packet is received from one of the plurality oftraffic managers, a first address included in the packet is replacedwith a second address.